#!/bin/bash
EXE="";
if [[ -e lexer.exe ]]; then
	EXE=lexer.exe
elif [[ -e lexer ]]; then
	EXE=lexer
fi
	
if [[ -e lexer ]]; then
	for i in {1..3}
	do
		./$EXE test${i}.txt > myans${i}.txt
		diff --suppress-common-lines -y myans${i}.txt ans${i}.txt
	done
fi

